<div class="jobDetails index">
	<h1>
		<?php __('Job Applicants');?>
	</h1>
	<table class="normal">
	<thead>
		<tr>
			<th><?php __('Kanji');?></th>
			<th><?php __('Furigana');?></th>
			<th><?php __('Gender');?></th>
			<th><?php __('Birth Date'); ?> </th>
			<th><?php __('phone');?></th>
			<th><?php __('mobile'); ?></th>
			<th><?php __('Email'); ?></th>
			<th class="actions"><?php __('Actions'); ?></th>
		</tr>
	</thead>
	<tbody>
	<?php
	$i = 0;
	foreach ($staffs[0]['Staff'] as $jobDetail):
		$class = null;
		if ($i++ % 2 != 0) {
			$class = ' class="odd"';
		}
	?>
	<tr<?php echo $class;?> id="row<?php echo $jobDetail['id']; ?>">
		<td><?php echo $jobDetail['kanji']; ?>&nbsp;</td>
		<td><?php echo $jobDetail['furigana']; ?></td>
		<td><?php echo $jobDetail['gender']; ?>&nbsp;</td>
		<td><?php echo $jobDetail['birthdate']; ?>&nbsp;</td>
		<td><?php echo $jobDetail['phone']; ?>&nbsp;</td>
		<td><?php echo $jobDetail['mobile']; ?>&nbsp;</td>
		<td><?php echo $jobDetail['pcemail']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link($this->Html->image('assets/icons/actions_small/View.png', array('alt' => 'Edit')),
											'/admin/' . $this->params['controller'] . '/staff/'.$jobDetail['id'],  
											array('escape' => false, 'class'=>'tooltip table_icon'));
			?>
			<?php echo $this->Html->link($this->Html->image('assets/icons/actions_small/Trash.png', array('alt' => 'Delete')),
											'/admin/'.$this->params['controller']. '/' .'delete_staff'.'/'.$jobDetail['id'],  
											array('rel' => 'delete', 'escape' => false, 'class'=>'tooltip table_icon'));
			?>
		</td>
	</tr>
<?php endforeach; ?>
</tbody>
</table>